home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / CheckPlatform.java < prev    next >
Text File  |  1998-09-29  |  2KB  |  77 lines

  1. package com.symantec.itools.tools.utilities;
  2.  
  3.  
  4. import java.applet.Applet;
  5. import com.symantec.itools.lang.AccessiblePlatform;
  6.  
  7.  
  8. /**
  9.  * @author Symantec Internet Tools Division
  10.  * @version 1.0
  11.  * @since VCafe 3.0
  12.  */
  13.  
  14. public class CheckPlatform
  15.     extends Applet
  16. {
  17.     public CheckPlatform()
  18.     {
  19.     }
  20.  
  21.     public void init()
  22.     {
  23.         boolean badInfo;
  24.  
  25.         badInfo = false;
  26.  
  27.         if(AccessiblePlatform.getJavaVendor() == null)
  28.         {
  29.             System.out.println("Platform doesn't know about the Java Vendor: " + System.getProperty("java.vendor"));
  30.             badInfo = true;
  31.         }
  32.  
  33.         if(AccessiblePlatform.getJavaVersion() == null)
  34.         {
  35.             System.out.println("Platform doesn't know about the Java Version: " + System.getProperty("java.version"));
  36.             badInfo = true;
  37.         }
  38.  
  39.         if(AccessiblePlatform.getOSName() == null)
  40.         {
  41.             System.out.println("Platform doesn't know about the OS Name: " + System.getProperty("os.name"));
  42.             badInfo = true;
  43.         }
  44.  
  45.         if(AccessiblePlatform.getOSVersion() == null)
  46.         {
  47.             System.out.println("Platform doesn't know about the OS Version: " + System.getProperty("os.version"));
  48.             badInfo = true;
  49.         }
  50.  
  51.         if(AccessiblePlatform.getOSType() == null)
  52.         {
  53.             System.out.println("Platform doesn't know what OS Type " + System.getProperty("os.name") + " is");
  54.             badInfo = true;
  55.         }
  56.  
  57.         if(AccessiblePlatform.getArchitecture() == null)
  58.         {
  59.             System.out.println("Platform doesn't know about the Architecture: " + System.getProperty("os.arch"));
  60.             badInfo = true;
  61.         }
  62.  
  63.         if(!(badInfo))
  64.         {
  65.             System.out.println("Platform knows about this configuration");
  66.         }
  67.     }
  68.  
  69.     /**
  70.      * @param argv TODO
  71.      * @since VCafe 3.0
  72.      */
  73.     public static void main(String[] argv)
  74.     {
  75.         new CheckPlatform().init();
  76.     }
  77. }